﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DefLib
{
    public class MouseEvent
    {
        private static int m_event = 0;
        public static int mX = 0;
        public static int mY = 0;
        public static void Clear()
        {
            m_event = 0;
            mX = 0;
            mY = 0;

        }
        public static void Down()
        {
            m_event |= MessageEvent.MOUSE_DOWN;
        }
        public static void Up()
        {
            m_event &= ~MessageEvent.MOUSE_DOWN;
            m_event &= ~MessageEvent.MOUSE_MOVE;
        }
        public static void Move()
        {
            m_event |= MessageEvent.MOUSE_MOVE;
        }
        public static bool isDown()
        {
            return ((m_event & MessageEvent.MOUSE_DOWN) == MessageEvent.MOUSE_DOWN);
        }
        public static bool isMove()
        {
            return ((m_event & MessageEvent.MOUSE_MOVE) == MessageEvent.MOUSE_MOVE);
        }

    }
}
